package cn.xiuxius.embedded.model;

import lombok.experimental.Accessors;

@Accessors(chain = true)
public class CmdFlagFlashOptionType extends AbstractFlashOptionType<String> {


    public CmdFlagFlashOptionType(String value, String cmdValue, boolean isDefault) {
        super(value, cmdValue, isDefault);
    }


    public static final CmdFlagFlashOptionType DEFAULT = new CmdFlagFlashOptionType("default", "default", true);


    public static CmdFlagFlashOptionType from(String flag) {
        return new CmdFlagFlashOptionType(flag, flag, false);
    }


    @Override
    public boolean isDefault() {
        return DEFAULT.equals(this);
    }


}
